package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * Created by Administrator on 2017/1/3.
 */
public class HasBeenInvitedUserListAction extends AHttpService<PbBean.PbResQuestionHasBeenInvitedUserList> {
    public static HasBeenInvitedUserListAction newInstance(Context context, int questionId , int offset){
        return new HasBeenInvitedUserListAction(context, questionId ,offset );
    }
    private int questionId;
    private int  offset;
    public HasBeenInvitedUserListAction(Context context, int questionId ,int offset) {
        super(context);
        this.questionId = questionId;
        this.offset=offset;
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqQuestionHasBeenInvitedUserList.Builder builder = PbBean.PbReqQuestionHasBeenInvitedUserList.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        builder.setQuestionId(questionId);
        builder.setOffset(offset);
        return apiService.quizHasbeenInviteUserList(builder.build());
    }
}
